package com.jml.雪崩和穿透效应.controller;

import com.jml.雪崩和穿透效应.service.RedisService;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {
	@Autowired
	private RedisService redisService;


	@RequestMapping("/rediscluster")
	public Object encacheGet (String key) throws IOException {
		redisService.setObject("jml",key);
		return key;
	}
}
